#encoding=utf-8
import chardet

with open(r'f:\\Beauty and The Beast(美女与野兽).txt', 'rb') as f:
    text = f.read()
    # print(chardet.detect(text))
    w = chardet.detect(text)
    print(w)
